<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Grid布局</title>
    <style>
        .parent {
            width: 400px;
            height: 400px;
            margin: 50px auto;
            background-color: cyan;

            display: grid;

            grid-template-rows: repeat(4, 1fr);
            grid-template-columns: repeat(4, 1fr);
        }

        .child {
            background-color: rgb(148, 235, 238);
        }

        .item01 {
            background-color: red;

            /* 默认网格线 */

            /* grid-area: 头行 / 头列 / 尾行 / 尾列; */
            /* grid-area: 1 / 1 / 2 / 5; */

            /* 等同上一行，注意是以【当前位置】开始 */
            grid-area: span 1 / span 4;
        }
    </style>
</head>

<body>

    <div class="parent">
        <div class="child item01">1</div>
        <div class="child item02">2</div>
        <div class="child item03">3</div>
        <div class="child item04">4</div>
        <div class="child item05">5</div>
        <div class="child item06">6</div>
    </div>

</body>

</html>